package com.wing.cabinet.model.response;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.cabinet.model.entity.ReceiveRecord;
import java.math.BigDecimal;

/**
 * 领取记录表VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ReceiveRecordVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * sku code
     */
    private String skuCode;

    /**
     * 领取人Id
     */
    private Long receiverId;

    /**
     * 领取人
     */
    private String receiverName;

    /**
     * 领取金额
     */
    private BigDecimal receiverMoney;

    /**
     * 领取时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime receiverTime;

    /**
     * 领取数量
     */
    private Integer quantity;

    /**
     * 权限组Id
     */
    private Long authorityManageId;

    /**
     * 额度评估周期
     */
    private ReceiveRecord.LineEvaluatePeriod lineEvaluatePeriod;

    /**
     * 额度评估周期描述
     */
    @TableField(exist = false)
    private String lineEvaluatePeriodDesc;

    public String getLineEvaluatePeriodDesc() {
        return lineEvaluatePeriod.getDesc();
    }

    /**
     * 剩余可领金额
     */
    private BigDecimal balance;

}
